import * as Mongoose from 'mongoose';
import { MongooseFactory } from '../kalend';
import { Schema } from 'mongoose';

const schema = MongooseFactory.Schema({
    name: {
        type: String,
        required: true
    },
    key: {
        type: String,
        required: true,
        unique: true
    },
    value: {
        type: Schema.Types.Mixed
    }
});

/**
 * 
 */
export const datadictionaryModel = MongooseFactory.Model("datadictionary", schema);
